<%--
  Created by IntelliJ IDEA.
  User: wugang
  Date: 2021/9/27
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
<%--服务器访问say.jsp这个页面这个方法就触发了--%>
    $(function () {
        var url='ws://localhost:8080/websocket/1';
        let webSocket = new WebSocket(url);
        webSocket.onopen=function () {

        }

    })

</script>
      <button type="button" id="submitBtn" class="btn btn-primary btn-lg btn-block"  style="width: 350px; position: relative;top: 45px;">登录123</button>
</body>
</html>
